<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- rowspan:要垮的行数 -->
    <!-- colspan:要垮的列数 -->
     <table border="1" cellspacing = "0" width = "500" height = "300">
        <caption>课程表</caption>
        <thead>
            <tr align="center" valign = "center">
                <td>项目</td>
                <td colspan="5">上课</td>
                <td colspan="2">活动与休息</td>
            </tr>
        </thead>
        <tbody>
            <tr align="center" valign = "center">
                <td>星期</td>
                <td>2-2</td>
                <td>2-4</td>
                <td>2-5</td>
                <td>2-6</td>
                <td>2-7</td>
                <td>2-8</td>
                <td>休息</td>
            </tr>

            <tr align="center" valign = "center">
                <td rowspan="4">上午</td>
                <td>3-2</td>
                <td>3-4</td>
                <td>3-5</td>
                <td>3-6</td>
                <td>3-7</td>
                <td>3-8</td>
                <td rowspan="4">休息</td>
            </tr>

            <tr align="center" valign = "center">
    
                <td>4-2</td>
                <td>4-4</td>
                <td>4-5</td>
                <td>4-6</td>
                <td>4-7</td>
                <td>4-8</td>
      
            </tr>

            <tr align="center" valign = "center">
        
                <td>5-2</td>
                <td>5-4</td>
                <td>5-5</td>
                <td>5-6</td>
                <td>5-7</td>
                <td>5-8</td>
 
            </tr>

            <tr align="center" valign = "center">
         
                <td>6-2</td>
                <td>6-4</td>
                <td>6-5</td>
                <td>6-6</td>
                <td>6-7</td>
                <td>6-8</td>
 
            </tr>
            <tr align="center" valign = "center">
                <td rowspan="2">下午</td>
                <td>7-2</td>
                <td>7-4</td>
                <td>7-5</td>
                <td>7-6</td>
                <td>7-7</td>
                <td>7-8</td>
                <td rowspan="2">休息</td>
            </tr>
            <tr align="center" valign = "center">
                <td>8-2</td>
                <td>8-4</td>
                <td>8-5</td>
                <td>8-6</td>
                <td>8-7</td>
                <td>8-8</td>
            </tr>

        </tbody>
     </table>
</body>
</html>